package sunyu.pojo.easyui;

import java.io.Serializable;
import java.util.Map;

/**
 * EasyUI使用的树节点
 *
 * @author 孙宇
 */
public class TreeNode implements Serializable {

    private String id;
    private String pid;
    private String text;
    private String state = "open";// 'open' or 'closed', default is 'open'.
    private boolean checked = false;
    private Map attributes;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public Map getAttributes() {
        return attributes;
    }

    public void setAttributes(Map attributes) {
        this.attributes = attributes;
    }
}
